Skip to content

Commit a dependency fix's build output with the archive's modes - #963

Merged
coderhelm[bot] merged 3 commits into
mainfrom
keep-file-modes-dep-fix
Dec 4, 2026
Merged

coderhelm[bot] merged 3 commits into
mainfrom
keep-file-modes-dep-fix

Conversation

@nambok

@nambok nambok commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Follows #959. A dependency fix's sandbox builds now commit their output with the archive's executable bits, the same as the codegen tool and the generators already do. A source check now covers every pass that runs a build, so a new one can't commit build output without them.

Changes

  • dep_fix: a probe now records which of its manifests and lockfiles the build left executable. Both commits of that output go through batch_write_from with git_mode::archive_sources: a verified bump set, and a single bump before its call sites are fixed. A new file the build left executable is committed executable; a file already on the branch keeps its mode.
  • xl_file_modes_kept names every caller of run_codegen and how many commits of build output it makes. Each of those commits must pass the archive's sources. The test walks the worker's source and fails on any caller it doesn't name.

Verification

  • cargo fmt --all --check, rustfmt --check on the incident files, and clippy with -D warnings all pass.
  • cargo test -p common -p worker -p gateway passes, including all nine xl_file_modes_kept tests.

The dependency fix's probe builds now carry which of their manifests and
lockfiles the build left executable, and both of its commits of that output
(a verified bump set, and a single bump before its call sites are fixed) go
through batch_write_from with git_mode::archive_sources. The xl case names
every caller of run_codegen with how many commits of build output it makes,
each passing the archive's sources, and fails on a caller it doesn't name.
@nambok nambok added the ch-review CoderHelm reviews this pull request label Dec 4, 2026
coderhelm[bot]

This comment was marked as outdated.

@coderhelm

coderhelm Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

💚 Post-merge health check passed: the deploy of 075bd39 completed and stayed green for the full 15-minute watch window (no new failures vs. the pre-merge baseline).
Auto-merge

  • ✅ CoderHelm approved
  • ✅ CI green
    The rest is in the pull request description.

coderhelm[bot]

This comment was marked as outdated.

@coderhelm coderhelm Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved 363c0a7 (merged)

@coderhelm
coderhelm Bot merged commit 075bd39 into main Dec 4, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ch-review CoderHelm reviews this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant